#include <iostream>
#include <cstdlib>
#include "myMath.h"

int main(int argc, char *argv[]) {
  if (argc < 2) {
    std::cout << "Usage: " << argv[0] << " number" << std::endl;
    return 1;
  }

  const double inputValue = atof(argv[1]);
  std::cout << "The square root of " << inputValue
            << " is " << mySqrt(inputValue) << std::endl;
  std::cout << "The square of " << inputValue
            << " is " << myPow2(inputValue) << std::endl;

  return 0;
}